package com.fesine.ch02.t8;

/**
 * @description: 类描述
 * @author: Fesine
 * @createTime:2016/7/4 16:00
 *
 *
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2016/7/4 16:00
 */
public class MyThread2 extends Thread {
    private Task task;

    public MyThread2(Task task) {
        super();
        this.task = task;
    }

    @Override
    public void run() {
        super.run();
        task.otherMethod();
    }
}
